﻿@model IEnumerable<VideoCache.Server.Model.RoleInfo>

@{
    ViewBag.Title = "角色管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2 class="pageTitle">@ViewBag.Title</h2>

<div class="easyui-panel wrap">
    <a href="@Url.Action("Create")" class="easyui-linkbutton">新建</a>
</div>
<div class="wrap">
<table class="ten-table" width="100%">
<thead>
    <tr>
        <th>角色名称</th>
        <th>显示名称</th>
        <th></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DisplayName)
        </td>
        <td>
            @Html.ActionLink("修改", "Edit", new { id=item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id=item.Id })
        </td>
    </tr>
}
</tbody>
</table>
</div>